package com.wxmp.market.zhuli.service.impl;

import com.wxmp.market.zhuli.domain.WxZhuliJoin;
import com.wxmp.market.zhuli.mapper.WXZhuliJoinDao;
import com.wxmp.market.zhuli.service.WxZhuliJoinService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

@Service("wxZhuliJoinService")
@Transactional
public class WxZhuliJoinServiceImpl implements WxZhuliJoinService {

    @Resource
    private WXZhuliJoinDao joinDao;

    @Override
    public WxZhuliJoin selectJoinInfoByOpenId(HashMap<String, String> map) {
        return joinDao.selectJoinInfoByOpenId(map);
    }

    @Override
    public List<WxZhuliJoin> selectJoinInfoBySendCode(HashMap<String, String> map) {
        return joinDao.selectJoinInfoBySendCode(map);
    }

    @Override
    public Integer selectJoinCount(HashMap<String, String> map) {
        return joinDao.selectJoinCount(map);
    }

    @Override
    public void add(WxZhuliJoin zhuliJoin) {
        joinDao.add(zhuliJoin);
    }
}
